add resize method (crop, extend) and gravity (center, south, ...) options