improve javascript image box