clean up
begin of images dimensions comparison