move image javascript to case module and attach on render array