found best compression rate for photo uploads