added img upload and usage