add hacky lookup to ImageFormat