Added image response handler