ref #1 ref #2 validateの追加
close #3 sample image is spec/factories/resource/sample_image.png