Corrected a bug in Image_Shmdata