added gestures programmatically to automatically created images