ParsePath and change ParseImage

Signed-off-by: BogdanKl <ogdan@list.ru>