Fix a memory leak.
Make the Image Rep images be better sized. Still have to check if it works for Retina displays.
Fix possible crash.
Simplifying some code.
Merge branch 'master' into imageRep