Added ability to pass in raw image data

This change allows `addFrame(image, params)` to receive an `ImageData` instance apart from the already existing canvas/image.
It could probably be merged into the existing code a bit more as far as params merging is concerned; please advise.