Fixed and simplified dynimg selection