Added ability to set options in webp encode method

Added ability to set options in webp encode method. Default should be "lossless: 1", in this case we will not lose quality of image.