Fix device images being off by 1px.

Fixes #439.