Fixed thumbnail creation for files with big aspect ratio factor; fixes issue #175
Set JPEG quality for thumbnail cache files