fixed some layout problems, still something wrong with InImageDetector?