fix environment errors
add support of svg sprites