Use 'image/jpeg' as default if getSnapshot parameter is null