resize image with help of php and imagemagic