added minimagic to resize photos