Modified MediaHelper to scale images