fixed bug of serving images