add alt and title logic for uploaded images