ajax img upload call returning correctly