thank you! but there is a issue with your code: change if (result.ContentType == "image/png" || result.ContentType == "image/jpeg" || result.ContentType == "image/jpg") return result; TO if (result.ContentType == "png" || result.ContentType == "jpeg" || result.ContentType == "jpg") return result;