fixed paperclip resizing issue