The getImagePath() method has five parameters, the first four of which are required:
File Name (string) The fully qualified name of image file. The file must reside in your app's public directory. You'll need to grant write access by the web server to the public directory and its children.
Width (integer) Desired width of the image.
Height (integer) Desired height of the image.
Output Mode (string) The output mode. Options are:
fit - Fit while maintaining aspect ratio
fit-x - Fit to the given width while maintaining aspect ratio
fit-y - Fit to the given height while maintaining aspect ratio
Image Quality - (integer, 0 - 100) Default value is 90
Generate a unique file name within a destination directory — uses the original file name as the basis for the new file name.