Is it possible to calculate the time of day given latitude, longitude and solar elevation angles (zenith, azimuth, elevation)?
Of course it is! How do you think sundials work? That said, there are better, more precise ways to keep time. I don't know how to do it for an image; that is really a computational problem rather than an astronomy question. You might be better off asking it at Stack Overflow.