js for hiding empty images