FML
IMAGE PIPELINE
added more control flow
Minor updates