Finally got paperclip image functionality to work by reverting back to older version of paperclip