fix image panel bug and rearrange image