broke out images function