updated shadowbox for new image handling