Added module to .cabal file.
Optimized redundant recalculations of pictures.
Further optimizations.