Image api fix