[issue #3] modify selector to work for video and image