Removed imageGrayscaleLuma() because exactly the same algorithm is already implemented in the gd library.