Otherwise, due to some modular arithmetic artifacts, there is an unsightly 1px transparent line between the picture and its css border.
Fixes #2779
Closes #2779