Ramingining wins four-way photo finish at Dubbo Turf Club