as_real_image not working as expected