Image: prevent useless object modification when self.data has 0 length