Adding pan and resize gestures for image views