Fix memory issues with PhotoView by wrapping ImageView in a WeakReference. Makes the code messy, but should work.