Using ERB for index
Replaced RMagick with minimagick
Tidying up a bit