fixed bug in remove image submit callback