Update image load logic