Fix multiple image selection for product gallery Closes #4751