Fix things in getPixel function

Allow arguments of getPixel() equal to bound and ensure that arguments x & y are rounded