Pass thru image data if command works, otherwise do some error handling