fix image gallery thumbnail cropping