Fixed #63 - halved memory usage

Small bug caused each image to be loaded twice in memory