CON-1888: Fix for old galleries
CON-1888: Removed file extension