changed timing code, added option to set current image