make code more readable
now png works as fallback if svg not supported