inserted image in model, alert and $ issues