adding image resize method to decrease payload - only for testing