Take padding into account in sprite maps

Only briefly tested in default mode, but seems to work so far.