Support for photo.transform

Adding support for the transform operation.