Photon surfing near compact accreting objects