added ability to remove subImages