separated logics of imagectrl