Image-based Pose Representation for Action Recognition and Hand Gesture Recognition