Add comments and use array_init_size in exportImagePixels
Add comments to artifact methods
Fix comments for colorspace methods