Fixed paperclip issues with file extension