convert deep image to points