remove redundant image attribute