factored out image loader usages