added imageleaded handler