JS refresh image fix