Added a couple helpers to get pixel number and size

Signed-off-by: Jacky Boen <aqiank@gmail.com>