image resizing working with quality:0.6