removed requirement for consistent quotes
reformated and added check for preloaded to ensure images srcs are strings