Magic image displaying

First attempt at #434