use setResolution to speed up preview generation of svgs and make OC_Image::crop preserve transparency

please review @PVince81 @bantu 

fixes https://github.com/owncloud/core/issues/7771