Why rounding off?  Is the image stored as int?