Add support for image alignment and resizing.