Physical simulation for real-time image/video retargeting