Issue #829: "Generalize screen grab methods". Didn't generalise them but changed getPixelsFromBuffer()'s visibility to public so users can do whatever they want :) Also throwing exceptions as per @ToxicBakery's suggestion.