bug fix with creating new detail and uploading image