fix #1104
Merge pull request #1105 from mikspark/1104-gallery-image-edit

fix #1104