add option to include caption to image