adding css and event handlers for image selection