added optional parameters: zoom/crop and quality