Drawing pixel by pixel in canvas