added checking for what overlay type the user submitted
modified name of the final image output