Some new code for model images. (not finished)