fix image size in preview