Added 2 methods in actions.js

Added .clipRect() and extractDomElementAsImage() both used for extracting a DOM element as an image.