support different quality settings on resizing