fixes image layout with long metatdata