Morph images to the actual grid
Load images only once
Remove legacy javascript