Passing image back and forth from directive to controller