Generate a photorealistic image of a medieval castle, with towering walls and majestic towers, standing tall and proud against a backdrop of rolling hills and a clear blue sky. The castle should exude an aura of power and grandeur, reminiscent of the formidable strongholds of the Middle Ages.