Change the return value for invalid parameters to NULL
Resize and crop an image
Generate a unique filename for a given path