Added few possibilities for image loading.