Added possibility of enabling/disabling img out