[[ ImageMetadata ]] Removed an unnecessary code and added initialisation of m_metadata