MAXIMASK and MAXITRACK: Two new tools for identifying contaminants in astronomical images using convolutional neural networks