Adding touch event and support for random pictures