fix image resolution