filename:the filename on disk to write to. :.jpg:will be appended.
quality:0-100 jpeg quality
