fix image resources