changes to image checker in users model