Why am I getting a double image?