Make bytes(), bpp(), pitch() return int to minimise warnings