remove quality 100 option
refactorying image resize