Support for image scaling