changed use of uint8_t to uint32_t

changed use of uint8_t to uint32_t since color images use 32 bit system instead of 8. and using uint8_t will only convert 1/4th of the image