add check if image isset