svg, img directories. some new functions