After end of the code try to add this below lines its a dirty trick to remove all the mirages, shadows in streamlit
for i in range(0, 100): st.markdown(" ")