Add new methods to the php resizing functionality.