Add megapix
Add some sample code