change img tag to background image
add error handling for when not jpg or png"
merge