Log and handle errors propperly
Reject invalid image types
Bump version to v1.2.0