Make reading of PSD pixel data shared between PSDLayerRecord and PSDImageData

Authored by dkazakov.