Animation and border fix

Animations now consistent on different browsers. Borders now around
images as intended.