Is an extension cord really out of the question? Keeping a power bank running 24 hours a day means you will have to recharge it quite often, even if it is large, since the power bank circuitry itself consumes current proportional to its size, more or less. And a solar panel would have to be at least 1 foot on a side, maybe bigger, and facing the sun. Maybe not that practical for a window installation.
You might be better off scripting a phone. Maybe the phone can completely power itself off except for the minute or so per day where it would boot itself, take a picture, and power off again.