fixed a couple of bugs with pictures