Сompatibility with paperclip 4.x version

Since version 4 should be added to the model the following code
```ruby
validates_attachment_content_type :image, content_type: /\Aimage\/.*\Z/
```
I have added it to mdel's templates