Added control for ProtoImage and invalid user input