image resize and image save working awsomely fine