add read pict size functions