added css to js, fixed temp img height and width declarations