resized image and changed to PNG