Add tests to validate image conversion