Add db indexes on users and images