Code to update marker icon (it should be somewhat working).