fixed bugs upload-image directive