fixed bug that doesn't allow image to display