Fixed infinite loop when there are no images indexed
Added support for new youtube embedded videos