 
 
 
+

        let totalColumns = width / pixelSize
        let totalRows = height / pixelSize
        
        let wRemainder = width.dividedReportingOverflow(by: pixelSize).partialValue
        let hRemainder = height.dividedReportingOverflow(by: pixelSize).partialValue
        
        let mapValues = getImageMap(length: totalColumns * totalRows)
        

            
            context.setFillColor(color.cgColor)
            context.fill(CGRect(x: CGFloat(x * pixelSize), y:CGFloat(y * pixelSize), width:CGFloat(pixelSize + (pixelSize * wRemainder)), height:CGFloat(pixelSize + (pixelSize * hRemainder))));
            
            x = x + 1
            
            if x == totalColumns {
