add resize & fill, add gravity & quality support