Add images utility methods.
Try to generalize the failure response handler and add method to send file with client.