Fixes oddness with lazy loading in gallery view

Closes #190

@jkeck This patch seems to fix the oddness with lazy loading thumbnails. 

![image](https://cloud.githubusercontent.com/assets/302258/5033231/16318a46-6b19-11e4-97b1-21e134632f55.png)