Fix JS Modal bug: poster show instead of images after modal switch