Fixed and optimized pixel access functions