fix image aspect ratio problem