make alt image registering optional