Prevent multiple loading for images