Values from update action too model

How can i get the parameters from the update action into my model?

In this case i need the size from the update action
Because each attachment has his own size.

has_attached_file :photo, :styles => { :small => size ------