added geometry, tries to resize images to have the same geometry