fix Paperclip thumbnail generation