added factories to test images

installed factory girl, added image factory