Apply direction aware 2D/3D hover animation to images