Clean up function image loader