Rewrite to only require a single script for any image.