add gm to resize image