Add item file image gallery as an option.
Fix bug where thumbnails sometimes appear as 1x1 pixels.