fix invalid image resource on registration page