Make qpsdHandler::read(QImage *image) faster

There is 4 loop in the qpsdHandler::read(QImage *image), which makes decoding slow. I reduce 2 of them. Hope you can continue with other psd formats.