Secure image loading