Learning Geometry-Dependent and Physics-Based Inverse Image Reconstruction