This patch adds a variant of the pixel loader function that returns a fallback value for out of bound access.