Extended functionality of mouseClicked and SplitImage