Added srcset functionality and tests

Fixes #35