Paperclip

Hi,

Wondering is there a way in paperclip to rename images as the are being saved to image_id+count ?

my code in image.rb model

  has_attached_file :data, :styles => { :large => "371*251>", :small => "72*72>"},                     :url => "/assets/:id",                     :path => ":rails_root/assets/docs/:id/:style/:basename.:extension"

  belongs_to :attachable, :polymorphic => true

I am attaching file using javascript.

What i am trying to do is when i want to call back images into array I want frist image to be large and second and third to be small. So if i could change name of images to be image_id plus count in array as name i would know that id_1 is large and so on.