Fix colorkey check when margin is FALSE