added 2d image object support