fix image width height bug