adding script to users model to check is paperclip attachemtn is an image