Fivestar votes on drupal fields
You can do this easily with the help of three modules
1) Entity
2) Fivestar
3) Field collection

Step 1. Install above modules.
Step 2. Create content type gallery.
Step 3. Add field collection as a field in the content type.
step 4. Add fields(Image field and fivestar field) to the field collection http://www.example.com/admin/structure/field-collections